## ---------------------------------------------------------------------
##
## Copyright (C) 2013 - 2020 by the deal.II authors
##
## This file is part of the deal.II library.
##
## The deal.II library is free software; you can use it, redistribute
## it, and/or modify it under the terms of the GNU Lesser General
## Public License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your option) any later version.
## The full text of the license can be found in the file LICENSE.md at
## the top level directory of deal.II.
##
## ---------------------------------------------------------------------

INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})

SET(_src
  dof_info.cc
  evaluation_template_factory.cc
  evaluation_template_factory_inst2.cc
  evaluation_template_factory_inst3.cc
  evaluation_template_factory_inst4.cc
  evaluation_template_factory_inst5.cc
  evaluation_template_factory_inst6.cc
  fe_point_evaluation.cc
  mapping_info.cc
  mapping_info_inst2.cc
  mapping_info_inst3.cc
  matrix_free.cc
  shape_info.cc
  task_info.cc
  vector_data_exchange.cc
  )

SET(_inst
  evaluation_template_factory.inst.in
  fe_point_evaluation.inst.in
  mapping_info.inst.in
  matrix_free.inst.in
  shape_info.inst.in
  )

FILE(GLOB _header
  ${CMAKE_SOURCE_DIR}/include/deal.II/matrix_free/*.h
  )

IF(DEAL_II_WITH_CUDA)
  SET(_src
    cuda_matrix_free.cu
    ${_src}
    )
  SET(_inst
    ${_inst}
    )
ENDIF()

DEAL_II_ADD_LIBRARY(obj_matrix_free OBJECT ${_src} ${_header} ${_inst})
EXPAND_INSTANTIATIONS(obj_matrix_free "${_inst}")
